package com.zb.springcloud.feign.impl;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.zb.springcloud.feign.FeignService;
import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicInteger;

@Component
public class PaymentFallBackService implements FeignService {
    @Override
    public String paymentInfo_Ok(Integer id) {
        return "--------PaymentFallBackServicce fall back-paymentInfo_ok,  ≧ ﹏ ≦";
    }


    @Override
    public String paymentInfo_Timeout(Integer id) {
        return "--------PaymentFallBackServicce fall back-paymentInfo_TimeOut,  ≧ ﹏ ≦";
    }

    @Override
    public String paymentCircuitBreaker(Integer id) {
        return "调度失败";
    }
}
